Skip to content

Generate hashes for docs dependencies and reuse existing venv - #160

Merged
jonathan343 merged 2 commits into
developfrom
docs-lock-hashes
Nov 25, 2026
Merged

jonathan343 merged 2 commits into
developfrom
docs-lock-hashes

Conversation

@jonathan343

Copy link
Copy Markdown
Contributor

Stacked on #159. Merge that first.

Summary

Lock requirements-docs.txt with --generate-hashes so installs verify every downloaded distribution against the lock file. Pinned versions are unchanged.

Also pass --allow-existing to uv venv in the venv target. uv 0.10+ refuses to replace an existing venv without --clear, so make docs-lock and make docs-install failed once .venv existed. This matches the verify venv target.

CI's docs build runs uv venv and uv pip install -r requirements-docs.txt directly, so only the hashes affect it.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jonathan343
jonathan343 changed the base branch from develop to zensical-upgrade November 25, 2026 02:46
@jonathan343
jonathan343 added this pull request to stack #161 November 25, 2026 02:46
@jonathan343
jonathan343 marked this pull request as ready for review November 25, 2026 02:53
@jonathan343
jonathan343 requested a review from a team as a code owner November 25, 2026 02:53
Base automatically changed from zensical-upgrade to develop November 25, 2026 06:11
Lock requirements-docs.txt with --generate-hashes so uv checks each
downloaded distribution against the lock file. Pinned versions are
unchanged.
Newer uv versions refuse to replace an existing virtual environment
without --clear, so docs-lock and docs-install failed after the first
run. Pass --allow-existing, matching the verify venv target.
@jonathan343
jonathan343 merged commit 0c78c81 into develop Nov 25, 2026
5 checks passed
@jonathan343
jonathan343 deleted the docs-lock-hashes branch November 25, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants